Carbon


ClearKeyboardFocus

Header: Controls.h Carbon status: Supported

Removes the keyboard focus for the currently focused control in a window.

OSErr ClearKeyboardFocus (
    WindowRef inWindow
);
inWindow

A pointer to the window in which to clear keyboard focus.

function result

A result code.

DISCUSSION

When the ClearKeyboardFocus function is called, the Control Manager calls your control definition function and passes kControlMsgFocus in its message parameter and kControlFocusNoPart in its param parameter. See ControlDefProcPtr for a discussion of possible responses to this message.

VERSION NOTES

This function is available with Appearance Manager 1.0 and later.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)